import { createRouter, createWebHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    name: 'index',
    redirect:'/env',
    meta:{
      title:'首页'
    },
    component: () => import('@/views/Index.vue')
  },
  {
    path:"/env",
    name:'env',
    meta: {
      title: "环境"
    },
    component: () => import('@/views/Environment.vue')
  }
]
const router = createRouter({
  history: createWebHistory(),
  routes: routes
})
export default router
